<?php
$sql = "select * from config";
$rs_config = $link->execute($sql);

$info = array(
'copyright' => 'VC CMS &copy; Thiết kế và phát triển bởi Trần Hữu Nhân&nbsp;- 2005-2006',
'list_page_size' => $rs_config->fields('list_page_size'),
'module_path' => $rs_config->fields('module_path'),
'module_path_free' => $rs_config->fields('module_path_free'),
'template_path' => $rs_config->fields('template_path'),
'sitename' => $rs_config->fields('sitename'),
'template_image_path'=>$rs_config->fields('template_path') . 'images/',
'style_path' => $rs_config->fields('template_path') . 'style/',
'charset' => $rs_config->fields('charset'),
'static_path' => $rs_config->fields('static_data_path') . $rs_config->fields('language') . '/',
'icon_path'=>$rs_config->fields('icon_path'),
'sitekey' => '311785540',
'block_path'=>$rs_config->fields('block_path')
);

$rs = $link->execute("SELECT * FROM um_module");
while(!$rs->EOF)
{
	$ppp = $info['module_path'] . $rs->fields('modname') . '/config.php'; 
	if ( file_exists($ppp) )	//kg co module trong thu muc module
		include($ppp);
		
	$rs->movenext();
}

//su dung cho template
include($server['adodb_path'] . 'template.php');
$template = new Template($info['template_path']);

//su dung cho ngon ngu
include('setlanguage.php');
?>